package com.blog.web;


import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.IdUtil;
import cn.hutool.extra.spring.SpringUtil;
import com.alibaba.fastjson2.JSON;
import com.blog.common.core.utils.SpringUtils;
import com.blog.common.domain.entity.FileInfo;
import com.blog.common.redis.service.RedisService;
import com.blog.common.security.annotation.EnableRyFeignClients;
import com.blog.common.swagger.annotation.EnableCustomSwagger2;
import com.blog.common.mapper.dao.FileInfoMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

import static com.blog.common.core.constant.CacheConstants.FILE_INFO;

/**
 * <p>
 * web模块
 * </p>
 * @author Vivian
 */
@EnableCustomSwagger2
@SpringBootApplication
@EnableRyFeignClients
@Slf4j
public class BlogWebApplication {


    public static void main(String[] args) {
        SpringApplication.run(BlogWebApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  web模块启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                "                             ,                                 \n" +
                "                              \\`-,                             \n" +
                "                              |   `\\                           \n" +
                "                              |     \\                          \n" +
                "                           __/.- - -.\\,__                      \n" +
                "                      _.-'`              `'\"'--..,__           \n" +
                "                  .-'`                              `'--.,_    \n" +
                "               .'`   _                         _ ___       `)  \n" +
                "             .'   .'` `'-.                    (_`  _`)  _.-'   \n" +
                "           .'    '--.     '.                 .-.`\"`@ .-'\"\"-,   \n" +
                "  .------~'     ,.---'      '-._      _.'   /   `'--'\"\"\"\".-'   \n" +
                "/`        '   /`  _,..-----.,__ `''''`/    ;__,..--''--'`      \n" +
                "`'--.,__ '    |-'`             `'---'|     |                   \n" +
                "        `\\    \\                       \\   /                    \n" +
                "         |     |                       '-'                     \n" +
                "          \\    |                                               \n" +
                "      jgs  `\\  |                                               \n" +
                "             \\/                                                ");
    }

}
